package com.starlinkdt.common.storage.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 天翼云对象存储配置文件
 *
 * @author system
 */
@Getter
@Setter
@ToString
@Configuration
@ConfigurationProperties(prefix = "storage.ct-yun-zos")
public class CtYunZosConfig {
    /**
     * ZOS接入地址
     */
    private String endpoint;

    /**
     * 访问密钥accessKeyID
     */
    private String accessKeyID;

    /**
     * 访问密钥secretAccessKey
     */
    private String secretAccessKey;

    /**
     * bucketName
     */
    private String bucketName;

    /**
     * 设置临时访问凭证的有效时间为3600秒
     */
    private Long durationSeconds;

}
